"""


    PAL Live.Application Mock


"""
import Song

_application = None

class View:
    def __init__(self):
        self.NavDirection = 1
        self.available_main_views = 1
        self.focus_view = 1
        self.is_view_visible = 1
        self.scroll_view = 1
        self.show_view = 1
        self.zoom_view = 1

    def add_is_view_visible_listener(self,f):
        pass
        
    def add_view_focus_changed_listener(self,f):
        pass

    def hide_view(self,f):
        pass

    def is_view_visible_has_listener(self,f):
        pass

    def remove_is_view_visible_listener(self,f):
        pass

    def view_focus_changed_has_listener(self,f):
        pass

    def remove_view_focus_changed_listener(self,f):
        pass


class Application(object):
    def __init__(self):
        self.view = View()
        
    def get_document(self):
        return Song.get_song()
        
def get_application():
    global _application
    if _application is None:
        _application = Application()
    return _application

    